﻿@using KPIS.GERP.Models.ICM
@using KPIS.GERP.Models.ViewModel
@model PurchaseRequest

@{
    var pcTypeMethod = new KPIS.GERP.WEB.GIMS.IcmMasterService.IcmMasterServiceClient().SelectListPurchaseMethod(null, false);
                        
}
@*@if (ViewContext.RouteData.Values["action"].ToString().ToLower() == "edit")
{
    @Html.HiddenFor(model => model.PurchaseRequest.PrId)
}*@
@*@Html.HiddenFor(model => model.PurchaseRequest.RecordStatus)
@Html.HiddenFor(model => model.PurchaseRequest.CreatedBy)
@Html.HiddenFor(model => model.PurchaseRequest.CreatedWhen)
@Html.HiddenFor(model => model.PurchaseRequest.UpdatedBy)
@Html.HiddenFor(model => model.PurchaseRequest.UpdatedWhen)*@

 
<div class="widget-box">
	<div class="widget-header header-color-blue2">
        <h4 class="lighter smaller">สร้างคำขอซื้อ/จ้าง</h4>
    </div>

    <div class="widget-body">
		<div class="widget-body-inner">
			<div class="widget-main">
               
				<div class="control-group">
					<div class="control-label">
						  @Html.DisplayName("วิธีการจัดหา")
					</div>
                    <div class="controls"> 
                        @Html.DropDownListFor(model => model.PcMethodId, pcTypeMethod, "เลือกวิธีการจัดหา")  
                        @Html.Raw("&nbsp<font color=red>*</font>")
						@Html.ValidationMessageFor(model => model.PcMethodId)
					</div>            
				</div>
                <div class="control-group">
				    <div class="control-label">
						    @Html.DisplayName("เหตุผลที่เลือก")
				    </div>
                    <div class="controls">   
					    @Html.TextAreaFor(model => model.PcMethodReason)
                        @Html.Raw("&nbsp<font color=red>*</font>")
					    @Html.ValidationMessageFor(model => model.PcMethodReason)
				    </div>            
			    </div>
                
            </div>
	    </div> 
    </div>
</div>